<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/setcolor.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_uze_01')?></cite></a>
        <a href="<?=site_url('user/zu')?>"><?=L('tpl_uze_02')?></a>
        <a href=""><?=$title?></a>
    </span>
    <fieldset class="layui-elem-field" style="margin-top: 10px;">
        <legend><?=$title?></legend>
        <div class="layui-field-box">
            <form class="layui-form layui-form-pane" action="<?=site_url('user/zu_save')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="colorr">* </span><?=L('tpl_uze_03')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" placeholder="<?=L('tpl_uze_04')?>" value="<?=$name?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="colorr">* </span><?=L('tpl_uze_05')?></label>
                    <div class="layui-input-inline">
                       <input class="layui-input" name="color" id="color" type="text" value="<?=$color?>"/>
                       <img src="<?=Web_Path?>packs/admin/images/rect.gif" width="18" height="17" border=0 style="position:absolute;right: 5px;top:9px;cursor:pointer;background-Color:<?=$color?>;" title="<?=L('tpl_uze_05')?>" onClick="initcolor('color','imgs_color');" id="imgs_color" align="absmiddle" vspace="1">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="colorr">* </span><?=L('tpl_uze_06')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="xid" value="<?=$xid?>" placeholder="<?=L('tpl_uze_07')?>" class="layui-input">
                    </div>
                </div>
                <?php if(!preg_match("/(iPhone|iPad|iPod|Android)/i", strtoupper($_SERVER['HTTP_USER_AGENT']))){?>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><?=L('tpl_uze_08')?></label>
                        <label class="layui-form-label" style="margin-left: 10px;width: 60px;"><?=L('tpl_uze_09')?></label>
                        <div class="layui-input-inline" style="width: 60px;">
                            <input type="text" name="cion_d" value="<?=$cion_d?>" class="layui-input">
                        </div>
                        <label class="layui-form-label" style="margin-left: 10px;width: 60px;"><?=L('tpl_uze_10')?></label>
                        <div class="layui-input-inline" style="width: 60px;">
                            <input type="text" name="cion_m" value="<?=$cion_m?>" class="layui-input">
                        </div>
                        <label class="layui-form-label" style="margin-left: 10px;width: 60px;"><?=L('tpl_uze_11')?></label>
                        <div class="layui-input-inline" style="width: 60px;">
                            <input type="text" name="cion_y" value="<?=$cion_y?>" class="layui-input">
                        </div>
                    </div>
                <?php }else{ ?>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><?=L('tpl_uze_12')?></label>
                        <div class="layui-input-inline">
                            <input type="text" name="cion_d" value="<?=$cion_d?>" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><?=L('tpl_uze_13')?></label>
                        <div class="layui-input-inline">
                            <input type="text" name="cion_m" value="<?=$cion_m?>" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><?=L('tpl_uze_14')?></label>
                        <div class="layui-input-inline">
                            <input type="text" name="cion_y" value="<?=$cion_y?>" class="layui-input">
                        </div>
                    </div>
                <?php }?>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_uze_15')?></label>
                    <div class="layui-input-inline" >
                        <input type="checkbox" name="fid" lay-skin="primary" value="1" title="<?=L('tpl_uze_16')?>" <?php if($fid==1){echo 'checked';}?> >
                        <input type="checkbox" name="aid" lay-skin="primary" value="1" title="<?=L('tpl_uze_17')?>" <?php if($aid==1){echo 'checked';}?> >
                        <input type="checkbox" name="sid" lay-skin="primary" value="1" title="<?=L('tpl_uze_18')?>" <?php if($sid==1){echo 'checked';}?> >
                        <input type="checkbox" name="vid" lay-skin="primary" value="1" title="<?=L('tpl_uze_19')?>" <?php if($vid==1){echo 'checked';}?> >
                        <input type="checkbox" name="mid" lay-skin="primary" value="1" title="<?=L('tpl_uze_20')?>" <?php if($mid==1){echo 'checked';}?> >
                        <input type="checkbox" name="did" lay-skin="primary" value="1" title="<?=L('tpl_uze_21')?>" <?php if($did==1){echo 'checked';}?> >
                    </div>
                </div>
                <div class="layui-form-item" style="position: relative;">
                    <label class="layui-form-label"><?=L('tpl_uze_22')?></label>
                    <div class="layui-input-inline">
                        <input id="pic" type="text" name="pic" value="<?=$pic?>" class="layui-input">
                    </div>
                    <?php 
                        if(preg_match("/(iPhone|iPad|iPod|Android)/i", strtoupper($_SERVER['HTTP_USER_AGENT']))){
                            echo '<button type="button" class="layui-btn layui-btn-primary" id="pics"><i class="layui-icon colorb">&#xe608;</i>上传图片</button>';
                        }else{
                            echo '<div class="layui-input-inline"><a href="javascript:cscms.get_open(\''.site_url('upload/up').'?dir=userzu\',\''.L('tpl_uze_23').'\',\'500px\',\'360px\')" class="layui-btn layui-btn-primary"><i class="layui-icon" style="color:green">&#xe608;</i>'.L('tpl_uze_23').'</a>';
                        }
                    ?>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label"><?=L('tpl_uze_24')?></label>
                    <div class="layui-input-block">
                        <textarea name="info" class="layui-textarea"><?=$info?></textarea>
                    </div>
                </div>
                <input name="id" type="hidden" value="<?=$id?>">
                <div class="layui-form-item">
                    <div class="layui-input-block noborder">
                        <button style="margin-left: 20%;" class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_uze_25')?></button>
                        <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_uze_26')?></button>
                    </div>
                </div>
            </form>
        </div>
    </fieldset>
            
    <script type="text/javascript">
        cscms.init();
        cscms.mode("cscms.getUpload('<?=Web_Path.SELF?>/upload/up_save_json?dir=userzu')");
    </script>
</body>
</html>